package org.mark.sell.controller;

import org.mark.common.response.Result;
import org.mark.sell.service.DeliveryProcessService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Map;

/**
 * 销售订单详情
 */
@RestController
@RequestMapping("/delivery")
@CrossOrigin
public class DeliveryProcessController {

    @Resource
    private DeliveryProcessService deliveryProcessService;

    @PostMapping("/salesStatistics")
    public Result salesStatistics(@RequestBody Map<String, Object> params) {
        return deliveryProcessService.getSalesStatistics(params);
    }
}